import { Comm } from "../utils/common";
class System extends Comm {
    constructor() {
        super();
    };
    /**
     * 获取学校列表
     */
    getSchoolList() {
        return new Promise((resolve, reject) => {
            let props = {
                url: "/gateway/api/system/schools",
                type: "GET",
                sCallBack: res => {
                    resolve(res);
                },
                eCallBack: err => {
                    reject(err);
                }
            }
            this.request(props);
        });
    };
    /**
     * 设置学校
     */
    setSchool(options) {
        return new Promise((resolve, reject) => {
            let props = {
                url: "/gateway/api/user/setSchool",
                data: options,
                sCallBack: res => {
                    resolve(res);
                },
                eCallBack: err => {
                    reject(err);
                }
            }
            this.request(props);
        });
    }
}

export { System }